<?php

$button_action = isset($key) ? str_replace('{#}',$key,$action) : $action;
$method = isset($method) ? strtolower($method{0}) : 'p';
$click = isset($confirm) ? (" onclick=\"if (!confirm('".
	addcslashes($confirm,"'\n")."')) return false;\"") : '';
echo '<input type="button" name="'.$method.
		$this->url($button_action).'" title="'.
		htmlspecialchars($label).
		'" class="f-grid-button f-grid-button_'.$id.
		'" value="'.htmlspecialchars($label).
		'"'.$click.($disabled ? ' disabled="disabled"' : '').'/>';
